package com.architecture.core.web.vo;

import com.architecture.core.utils.UniqueUtils;

/**
 * Created with IntelliJ IDEA.
 * User: aguang
 * Date: 13-2-3
 * Time: 下午4:15
 * To change this template use File | Settings | File Templates.
 */
public abstract class BaseVO {

    private Long ramId;

    private boolean hasPermission;

    private String state;

    public Long getRamId() {
        if (null == ramId || 0 >= ramId) {
            return this.ramId = UniqueUtils.getUniqueId();
        } else {
            return ramId;
        }
    }

    public boolean isHasPermission() {
        return hasPermission;
    }

    public void setHasPermission(boolean hasPermission) {
        this.hasPermission = hasPermission;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
